<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"import="base.*,pojo.*,service.*,java.util.*,java.text.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<script>
	function tiao(){
	location.href="../dishes.jsp";
	};
	setTimeout(tiao,1000);
</script>

<body>

<%
	request.setCharacterEncoding("utf-8");

	String id =(String)request.getParameter("id");
	
	int i=Integer.parseInt(id);
	
	DishesService dms = new DishesService();
	
    int r = dms.DeleteD(i);
    
	if(r==1){
		
		 out.print("删除成功!");
		
	}
	
	else{
		
		out.print("删除失败");	
	}
%>	  
</body>
</html>